Today, my colleague asked me where the Liferay framework default resource file was obtained when Maven built theme, and I compared the process of using ant to compile the deployment theme and using MAVEN to compile the deployment theme, discovering that it was a completely different strategy when replicating the framew
After learning the ant build theme, Liferay theme, we easily ported the theme project to Maven. The following are the specific steps:
Assume:
Because we used the http://supercharles888.blog.51cto.com/609344/890525 development structure as shown in the article, let's assume
Record today Liferay project from ant Switch to maven lesson.
For tomorrow's demo, we've switched all the Liferay projects that were built with Ant to Maven, and the results are not always visible when deploying a theme application built by MAVEN to a Liferay server. I worked for half an hour, only to find out why, be
We can develop theme to let the system not use the default style.
When we create a theme project with the wizard and compile it, the project structure is shown in the following illustration:
where all the docroot below the _diffs directory are liferay from the default copy of the resource file. All we need to change is to build a parallel directory under the
It is very easy to get the portal site to use its own theme (subject) in Liferay, as follows:
(1) In Dock-bar, select Manage->page Layout->look and Feel
(2) then select "Define a specific look and feel for this page"
(3) then select our custom theme (for example, we developed a theme named Demo-
Conclusion:
Theme Upload logo will do the following things:
(1) Using Uploadportletrequest object to handle the
(2) for the uploaded logo picture is empty, then throw an exception.
(3) for the upload of the logo picture is not empty, the first from the database to find the current layout, for logo definition logoid, and bar logoid add to the current layout and then back to the database, and then set according to the Boolean variable to determine
Liferay has two types of services:
1) Internal ServicesLiferay core services, such as portal-impl.jar
2) External ServicesThat is, portal APIs, such as portal-kernel.jar and portal-service.jar
The liferay internal service is updated frequently. Pay special attention to the liferay version upgrade. The liferay external
. Other databases By default do not provide direct support, as long as the database is hibernate support, if you want to let Liferay support, need to make some changes to the source code, the changes are not complicated. Specific can refer to the Liferay source directory under the portal-impl/src/com/liferay/portal/dao/db of the following polygons related classes
The project team is now developing with Maven, and the original non-MAVEN project is migrating to the MAVEN project, and for our development, we assume the following directory structure:
One of the items directly below the total project to create a walmart-parent-pom.xml, as Father Pom file, this file does not do anything, only to do with the environment-related settings. Each subproject (green, Yellow Square) has a pom.xml, and the pom.xml of thes
Theme. AppCompat. Light solution in Android development, theme. appcompat
In styles. xml,
Error: Error retrieving parent for item: No resource found that matches the given name
'Theme. AppCompat. light '.
Solution:
Open any. java file in Eclipse and enter
Android. R. style.
At this time, you will see a prom
Another piece is finished! "With Bill learn WordPress theme Development", the best WordPress theme Template Development Video Tutorial!!Catalog preview:
WordPress Official source file layer structure explanation
wordpress database table structure, field details
wordpress
. The specific code looks like this: Iv. control handling for interchangeable themesTheme and theme managers are finished, and then it's time to use them. When a theme is toggled, the control that needs to modify the property we need to process it to listen to the notification of the subject switch and modify the control's properties based on the notification content. In this section we will take Superview
What are the main Theme functions of ASP. NET development skills? Next let's take a look:
The Theme feature is added in ASP. NET 2.0, which makes it easier for websites to skin over.
Theme implementation includes: CSS, Skin, and MasterPage.
CSS is used to control the appearance of all HTML tags.
Skin is used to control
theme.You don't even need to learn HTML, CSS, and PHP to have a beautiful theme.Why do we need to create a theme on our own? This is the key to the problem.This is a good opportunity to learn CSS, HTML, and PHP.This is an opportunity to accumulate your practical experience in CSS, HTML, and PHP.The topic creation process is full of creativity.This is very interesting (in most cases ).If you design a public th
nonexistent topic, yii: app ()-> theme will return null.
The content in the topic directory is organized in the same way as that in the application base path directory. For example, all view files must be located under views, Layout view files are located under views/layouts, and system view files are located under views/system. For example, if we want to replace the create view file of PostController with a classic topic, we will save the new view f
organized in the same way that it is organized under the application Base path directory. For example, all view files must be located under Views, Layout view files under Views/layouts, and System view files under Views/system. For example, if we were to replace the Postcontroller create view file with the classic theme, we would save the new view file as webroot/themes/classic/views/post/create.php.
For the controller view file inside the module, t
iOS development Project-05 Theme settingsFirst, the realization effect1. ShowNote the navigation bar of the viewing interface"Write message" on the navigation bar of the message interface"System Settings" on the Discovery Interface"I" Interface on the German "settings"2. Implementation Notes(1) suitable for IOS6 and IOS7, requires the navigation title bar and the above button settings are basically the same
Learn Typecho Theme Development Notes 01,typecho Theme Note 01
Blog was accelerated Lok hang out, so there is the idea of learning Typecho theme development, thank you for this opportunity!The first is to see the theme folder und
To modify an app theme by configuring extension pointsPS: Need to prepare the theme (THEME.CSS) file in advance. -point="Org.eclipse.rap.ui.themes"> file="Theme/fancy/fancy.css"id="Cn.sunline.lttsweb.application.theme"name="Default Theme">file="Theme/business/business.css"id
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.